package edu.sctu.alex.May.day20150512;

/**
* Created by user03 on 2015/5/13.
*/
public class SonTwo extends Father {
    Info[] info1;

    public SonTwo(Info[] info0) {
        super(info0);
        this.info1=info0;
    }

    @Override
    public void getSystem() {
        SetInfo setInfo = new SetInfo();
        for (int i = 0; i <info1.length ; i++) {
            if(info1[i].getScore()>=60 && info1[i].getSex().equals("male7")){
                System.out.println("这名同学及格,而且他是男生！！！他的信息是");
                System.out.println(info1[i].getName());
                System.out.println(info1[i].getAction());
                System.out.println(info1[i].getAge());
                System.out.println(info1[i].getScore());
                System.out.println(info1[i].getSex());
                System.out.println(info1[i].getScore());

            }
        }
    }
}
